#ifndef __BOUNDED_TIMESTAMP_H_
#define __BOUNDED_TIMESTAMP_H_

class BoundedTimestamp {
 public:
	BoundedTimestamp(int threads_num);
	~BoundedTimestamp();

	size_t GetTimestamp(int id);

 private:
	int IsLess(size_t val1, size_t val2);
	size_t NextTimestamp(size_t val);

	size_t *tstamps_;
	int threads_num_;
}

#endif // __BOUNDED_TIMESTAMP_H_
